package cacco.jp.mld.panel.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cacco.jp.mld.panel.dao.LogDao;
import cacco.jp.mld.panel.entity.LogEntity;

@Service
public class LogService {
   
	
	@Autowired 
	LogDao logDao;
	
	public List<LogEntity> getAll(){
		return logDao.getAll();
	}

	public int addLog(LogEntity log) {
		return logDao.add(log);
	}

	public void updateLog(LogEntity log) {
		logDao.update(log);
	}

	public void deleteLog(Integer id) {
		logDao.delete(id);
	}

	public List<LogEntity> getAlByPage(int pageSize, int page, String sidx,
			String sord) {
		return logDao.getAlByPage(pageSize, page, sidx, sord);
	}

	public int getTotalRecords() {
		return logDao.getTotalRecords();
	}
}
